package com.hoshing.test.controller;


import com.alibaba.fastjson.JSONObject;
import com.hoshing.test.service.ITAuditLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hskj
 * @since 2021-12-10
 */
@RestController
@RequestMapping("/test/auditLog")
public class TAuditLogController{

    @Autowired
    ITAuditLogService auditLogService;

    @GetMapping("getLog")
    public String getLog(){
        return JSONObject.toJSONString(auditLogService.list());
    }
}

